/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.io.File;
/*     */ import net.minecraft.block.Block;
/*     */ import net.minecraft.block.state.IBlockState;
/*     */ import net.minecraft.client.Minecraft;
/*     */ import net.minecraft.client.gui.GuiScreen;
/*     */ import net.minecraft.client.multiplayer.WorldClient;
/*     */ import net.minecraft.client.renderer.BufferBuilder;
/*     */ import net.minecraft.client.renderer.GlStateManager;
/*     */ import net.minecraft.client.renderer.RenderGlobal;
/*     */ import net.minecraft.client.renderer.Tessellator;
/*     */ import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
/*     */ import net.minecraft.client.settings.KeyBinding;
/*     */ import net.minecraft.entity.Entity;
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ import net.minecraft.nbt.NBTTagCompound;
/*     */ import net.minecraft.util.math.AxisAlignedBB;
/*     */ import net.minecraft.util.math.BlockPos;
/*     */ import net.minecraft.util.math.RayTraceResult;
/*     */ import net.minecraft.util.text.ITextComponent;
/*     */ import net.minecraft.util.text.TextComponentString;
/*     */ import net.minecraft.util.text.TextFormatting;
/*     */ import net.minecraft.world.World;
/*     */ import net.minecraftforge.client.event.RenderWorldLastEvent;
/*     */ import net.minecraftforge.common.MinecraftForge;
/*     */ import net.minecraftforge.fml.client.FMLClientHandler;
/*     */ import net.minecraftforge.fml.client.registry.ClientRegistry;
/*     */ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/*     */ import net.minecraftforge.fml.common.gameevent.InputEvent;
/*     */ import org.lwjgl.opengl.GL11;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class up
/*     */   extends xu
/*     */ {
/*     */   public static KeyBinding g;
/*     */   
/*     */   public void v() {
/*  45 */     MinecraftForge.EVENT_BUS.register(this);
/*  46 */     jp jp = qz.v();
/*  47 */     jp.v();
/*  48 */     jp.z();
/*  49 */     g = new KeyBinding("NBTEdit Shortcut", 0, "key.categories.misc");
/*  50 */     ClientRegistry.registerKeyBinding(g);
/*     */   }
/*     */ 
/*     */   
/*     */   public File v() {
/*  55 */     return (FMLClientHandler.instance().getClient()).field_71412_D;
/*     */   }
/*     */ 
/*     */   
/*     */   public void v(int i, NBTTagCompound nBTTagCompound) {
/*  60 */     Minecraft.func_71410_x().func_152344_a(new hr(this, i, nBTTagCompound));
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(BlockPos blockPos, NBTTagCompound nBTTagCompound) {
/*  70 */     Minecraft.func_71410_x().func_152344_a(new ay(this, blockPos, nBTTagCompound));
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(EntityPlayer entityPlayer, String str, TextFormatting textFormatting) {
/*  80 */     TextComponentString textComponentString = new TextComponentString(str);
/*  81 */     textComponentString.func_150256_b().func_150238_a(textFormatting);
/*  82 */     (Minecraft.func_71410_x()).field_71439_g.func_145747_a((ITextComponent)textComponentString);
/*     */   }
/*     */   
/*     */   @SubscribeEvent
/*     */   public void v(RenderWorldLastEvent renderWorldLastEvent) {
/*  87 */     GuiScreen guiScreen = (Minecraft.func_71410_x()).field_71462_r;
/*  88 */     if (guiScreen instanceof ku) {
/*  89 */       ku ku = (ku)guiScreen;
/*  90 */       Entity entity = ku.getEntity();
/*     */       
/*  92 */       if (entity != null && entity.func_70089_S()) {
/*  93 */         v(renderWorldLastEvent.getContext(), renderWorldLastEvent.getPartialTicks(), entity.func_174813_aQ());
/*  94 */       } else if (ku.isTileEntity()) {
/*  95 */         int i = ku.getBlockX();
/*  96 */         int j = ku.z;
/*  97 */         int k = ku.i;
/*  98 */         WorldClient worldClient = (Minecraft.func_71410_x()).field_71441_e;
/*  99 */         BlockPos blockPos = new BlockPos(i, j, k);
/* 100 */         IBlockState iBlockState = worldClient.func_180495_p(blockPos);
/* 101 */         Block block = worldClient.func_180495_p(blockPos).func_177230_c();
/* 102 */         if (block != null)
/*     */         {
/* 104 */           v(renderWorldLastEvent.getContext(), renderWorldLastEvent.getPartialTicks(), block.func_180640_a(iBlockState, (World)worldClient, blockPos));
/*     */         }
/*     */       } 
/*     */     } 
/*     */   }
/*     */   
/*     */   @SubscribeEvent
/*     */   public void v(InputEvent.KeyInputEvent keyInputEvent) {
/* 112 */     if (g.func_151468_f()) {
/* 113 */       RayTraceResult rayTraceResult = (Minecraft.func_71410_x()).field_71476_x;
/* 114 */       if (rayTraceResult != null)
/* 115 */         if (rayTraceResult.field_72308_g != null) {
/* 116 */           qz.m.q.sendToServer(new rp(rayTraceResult.field_72308_g.func_145782_y()));
/* 117 */         } else if (rayTraceResult.field_72313_a == RayTraceResult.Type.BLOCK) {
/* 118 */           qz.m.q.sendToServer(new dw(rayTraceResult.func_178782_a()));
/*     */         } else {
/* 120 */           v((EntityPlayer)null, "Error - No tile or entity selected", TextFormatting.RED);
/*     */         }  
/*     */     } 
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncor\\up.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */